import request from '@/utils/request'

export function getVersion (data) {
  return request({
    url: '/api/version/newestversion',
    method: 'get',
    params: data
  })
}

export function insertVersion (data) {
  return request({
    url: '/api/version/addnewversion',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}
